#include<stdio.h>
#include<sys/time.h>

#include<unistd.h>



int main()

{

        struct  timeval    tv;

        struct  timezone   tz;

        gettimeofday(&tv,&tz);



        printf("tv.tv_sec:%d\n", tv.tv_sec);
        printf("tv.tv_usec:%d\n", tv.tv_usec);

        printf("tv.tv_sec:%ld\n", (tv.tv_sec * 1000 + tv.tv_usec)/1000);

        printf("tz.tz_minuteswest:%d\n", tz.tz_minuteswest);

        printf("tz.tz_dsttime:%d\n",tz.tz_dsttime);
}
